﻿<!--
Name:用户中心-会员积分
Page:All
-->
<div class="nbbox clearfix">
<div class="user">
    <div class="searchbox clearfix">
        <input type="text" id="key" name="key" class="input-query" value="<%=key %>" onkeydown="if(event.keyCode==13){search_();}" />
        <a href="javascript:void(0)" onclick="search_();" class="btn btn-12"><s></s>{tag:查询}</a>
        <%if(SYS.IsPointToMoney=="1"){ %>
        <a href="<%=URL("P_UserPointToMoney","") %>" class="btn btn-12"><s></s>{tag:积分转换}</a>
        <%} %>
    </div>
    <div class="table-list loadlist">
        <%foreach (Shop.Model.Lebi_User_Point u_p in user_points){%>
        <div class="loadli">
        <table cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <th style="width:70px;"><%=u_p.Point%></th>
            <th style="width:80px;"><%=TypeName(u_p.Type_id_PointStatus)%></th>
            <th><%=FormatTime(u_p.Time_Add)%></th>
        </tr>
        <tr>
            <td colspan="3"><%=u_p.Remark %></td>
        </tr>
        </table>
        </div>
        <%} %>
    </div>
    <%if (CurrentSite.IsMobile==0){ %>
        <div class="bottom clearfix"><div class="right"><%=PageString%></div></div>
    <%}else{%>
    <div class="loadpage">
        <a data-next="<%=NextPage%>"></a>
    </div>
    <script>
        $(document).ready(function () {
            var container = document.querySelector('.loadlist');
            var ias = $.ias({
                container: ".loadlist",
                item: ".loadli",
                pagination: ".loadpage",
                next: ".loadpage a"
            });
            ias.on('render', function (items) {
                //$(items).css({ opacity: 0 });
            });
            ias.on("rendered", function (items) {
            });
            ias.extension(new IASSpinnerExtension({ html: "<div class=\"loadinginfo\"><img src=\"{src}\" />&nbsp;{Tag:加载中}</div>" }));
            ias.extension(new IASTriggerExtension({ text: '{Tag:加载更多}', offset: 100, html: "<div class=\"loadinginfo more\"><p>{text}</p></div>" }));
            ias.extension(new IASNoneLeftExtension({
                text: '', html: ""
            }));
        });
    </script>
    <%}%>
</div>
</div>
<script type="text/javascript">
    function search_() {
        var key = $("#key").val();
        window.location = "?key=" + escape(key);
    }
</script>